{# default Sliding pagination control implementation #}

{% if pageCount > 1 %}
<ul class="pagination">
    {% if first is defined and current != first %}
		<li class="arrow"><a href="{{ path(route, query|merge({(pageParameterName): first})) }}"><i class="icon-double-angle-left"></i></a></li>
    {% endif %}

    {% if previous is defined %}
		<li class="arrow"><a href="{{ path(route, query|merge({(pageParameterName): previous})) }}"><i class="icon-angle-left"></i></a></li>
    {% endif %}

    {% for page in pagesInRange %}
        {% if page != current %}
			<li><a href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a></li>
        {% else %}
			<li class="current"><a href="javascript:void(0);">{{ page }}</a></li>
        {% endif %}
    {% endfor %}

    {% if next is defined %}
		<li class="arrow"><a href="{{ path(route, query|merge({(pageParameterName): next})) }}"><i class="icon-angle-right"></i></a></li>
    {% endif %}

    {% if last is defined and current != last %}
		<li class="arrow"><a href="{{ path(route, query|merge({(pageParameterName): last})) }}"><i class="icon-double-angle-right"></i></a></li>
    {% endif %}
</ul>
{% endif %}
